﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HS.Domain.EF;
using System.Data.Entity;

namespace HS.Business.Security
{    
    public class MedioPagoBusiness
    {
       public List<MedioPago> GetEntities(bool? rowStatus)
       {
           HomeSolutionsDBEntities context = new HomeSolutionsDBEntities();

           return context.MedioPago
                    .Where(p => (rowStatus != null ? p.RowStatus == rowStatus : p.RowStatus == true))
                    .ToList();
       }
    }
}
